<!DOCTYPE html>

<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title></title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="">
    </head>
    <body>
      
        <script>
    S("#submit ").click(function(e){
        e.preventDefault();
        var today = new Date();

var name = $("#name "). va(l);

var price = $("#price "). val();

var amount = $("#amoun!").val();

var str= `<div class= "card">

<div class= "card-body">
    <h5 class= "card- title ">
${today.getFullYear()}年${
    today.getMonth()+1
}月${today.getDate()}日
</h5>
<p class= "card-text">物资:$(name), #Vr: ${price},数量:${amount}</p>

<p class= "card-text"> 共计: ${price * amount}元</p>
</div>
</div>`;
S("#history-list' ").prepend(S(str));

S("form ")[0].reset();
    });




        </script>
    </body>
</html>